CPP=g++
CPPFLAGS=-c -Wall -lssl
LDFLAGS=-lssl -lpthread -ggdb3
SOURCES=cliente.cpp funciones.cpp
OBJECTS=$(SOURCES:.cpp=.o)
EXECUTABLE=cliente

all: $(SOURCES) $(EXECUTABLE)

clean:
	rm -f $(EXECUTABLE) $(OBJECTS)

$(EXECUTABLE): $(OBJECTS)
	$(CPP) $(LDFLAGS) $(OBJECTS) -o $@

.cpp.o:
	$(CPP) $(CPPFLAGS) $< -o $@
 
